import random
d=int(input("Кол-во выстрелов "))
x=0
y=0
b=0
if d<=0:
    print("число меньше нуля")
for i in range(d):
    x = random.randint(-100, 100)
    y = random.randint(-100, 100)
    if x>=0 and y>=0 and x<=5 and y<=5:
        b+=1
    elif x>=0 and y>=0 and x<=5 and y>=-8:
        b+=1
    elif x>=0 and y>=0 and x>=-7 and y<=5:
         b+=1
    elif x>=0 and y>=0 and x>=-7 and y<=-8:
         b+=1
print("Количество поподаний", b)

    
